package com.xujinchen.base;

public class Demo02 {
    public static void main(String[] args) {
        String a = "hello";
        int num = 10;
        System.out.println(a);
        System.out.println(num);
        //八大基本数据类型

        int num1 =10;  //最常用
        byte num2 =20;
        short num3 =30;
        long num4 = 30L;//long类型要在数字后面加L

        //小数；浮点数
        float num5 =50.1F;//float类型要在数字后面加F
        double num6 =3.14526;

        //字符
        char name = 'A';
        //字符串，String不是关键字，类
        String namea = "徐金晨";

        //布尔值
        boolean flag=true;
        boolean flog = false;

    }
}
